package com.example.core.constants;

public class Constants {
    public static final String SPLIT_SEM = ";";
    public static final String UNDERLINE_SEPARATOR = "_";

    public static final Integer TRUE = 1;

    public static final Integer FALSE = 0;

    public static final Long DEFAULT_SYSTEM_USER_ID = 1L;

//    public static final String DEFAULT_CODE = "123456";

    public static final String USER_ID = "user_id";

    public static final String UTF8 = "UTF-8";
    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";


    /**
     * 服务端url标识
     */
    public static final String SYSTEM_URL_PREFIX = "system";

    /**
     * 用户端url标识
     */
    public static final String FRIEND_URL_PREFIX = "friend";

    /**
     * www主域
     */
    public static final String WWW = "www.";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;

    /**
     * 失败标记
     */
    public static final Integer FAIL = 500;

    /**
     * 登录成功状态
     */
    public static final String LOGIN_SUCCESS_STATUS = "0";

    /**
     * 登录失败状态
     */
    public static final String LOGIN_FAIL_STATUS = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 注册
     */
    public static final String REGISTER = "Register";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 验证码有效期（分钟）
     */
    public static final long CAPTCHA_EXPIRATION = 2;

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    public static final String ACCESS_TOKEN = "access_token";

    /**
     * 默认验证码
     */
    public static final String DEFAULT_CODE = "123456";
}
